<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录注册切换动画</title>
    <link rel="stylesheet" href="./demo.css" />
  </head>
  <body>
    <div class="container">
      <div class="form-box">
        <!-- 注册 -->
        <div class="register-box hidden">
          <h1>Register</h1>
          <input type="text" placeholder="用户名" />
          <input type="email" placeholder="邮箱" />
          <input type="password" placeholder="密码" />
          <input type="password" placeholder="确认密码" />
          <button>注册</button>
        </div>
        <!-- 登录 -->
        <div class="login-box">
          <h1>Login</h1>
          <input type="text" placeholder="用户名" />
          <input type="password" placeholder="密码" />
          <button>登录</button>
        </div>
      </div>
      <div class="con-box left">
        <h2>欢迎来到<span>宠物之家</span></h2>
        <p>快来领取你的专属<span>宠物</span>吧</p>
        <img src="./img/1.jpeg" alt="" />
        <p>已有账号</p>
        <button id="login-btn">登录</button>
      </div>
      <div class="con-box right">
        <h2>欢迎来到<span>宠物之家</span></h2>
        <p>快来领取你的专属<span>宠物</span>吧</p>
        <img src="./img/2.png" alt="" />
        <p>没有账号？</p>
        <button id="register-btn">注册</button>
      </div>
    </div>
    <script src="./demo.js"></script>
  </body>
</html>
